import request from '../utils/request';


export function publish(data) {
  return request({
    url:'/article/publish',
    method:'POST',
    data
  })
}



export function getArticleList() {
  return request({
    url:'/article/list',
    method:'GET',
  })
}

export function articleType() {
  return request({
    url:'/article/type',
    method:'GET',
  })
}



export function getArticleDetail(params) {
  return request({
    url:'/article/detail',
    method:'GET',
    params
  })
}
